package Expe9;

/**
 * @Author 28021
 * @Date 2022/10/25
 */
public class Father {
    int money=12;
    float height;
    int seeMoney(){
        return money;
    }
}
class Son extends  Father{
    float height;
    int lookMoney(){
        int m=seeMoney();
        return m;
    }
}
class E{
    public static void main(String[] args) {
        Son erzi=new Son();
        erzi.money=300;
        erzi.height=1.78F;

        System.out.println(erzi.lookMoney());
        System.out.println(erzi.height);
    }
}
